package com.atguigu.gulimail.product.service;

import com.atguigu.gulimail.product.entity.ProductAttrValueEntity;
import com.atguigu.gulimail.product.vo.AttrGroupRelationVO;
import com.atguigu.gulimail.product.vo.AttrRespVo;
import com.atguigu.gulimail.product.vo.AttrVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimail.product.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author songshaoqiu
 * @email songshaoqiu@gmail.com
 * @date 2022-01-07 15:06:03
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttrVo(AttrVo attrVo);

    PageUtils queryDetils(Map<String, Object> params, Long catelogId, String attrType);

    AttrRespVo getAttrRespVoById(Long attrId);

    void updateAttrRespVo(AttrRespVo attrRespVo);

    List<AttrEntity> getAttrsByGroupId(Long attrgroupId);

    void deleteBatch(AttrGroupRelationVO[] relationVOS);

    PageUtils getNoRelationAttr(Map<String, Object> params, Long attrgroupId);

    List<ProductAttrValueEntity> getAttrValuesBySpuId(Long spuId);

    List<Long> getSearched(List<Long> attrIds);

}

